package com.rd.student.ruanjian.class4.zhouzihe.day0802;


import java.util.Scanner;

public class Practice3 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
//        System.out.println("请输入三个数");
//        String str = scanner.next();
//        String[] arr = str.split(" ");
//        for (int i = 0; i < arr.length; i++) {
//            System.out.println(arr[i]);
//        }
        System.out.println("请输入第一个数");
        int n1 = scanner.nextInt();
        System.out.println("请输入第二个数");
        int n2 = scanner.nextInt();
        System.out.println("请输入第三个数");
        int n3 = scanner.nextInt();

        if (n1 > n2) {
            if (n3 > n1) {
                System.out.println(n2 + "->" + n1 + "->" + n3);
            } else if (n3 < n2) {
                System.out.println(n3 + "->" + n2 + "->" + n1);
            } else {
                System.out.println(n2 + "->" + n3 + "->" + n1);
            }
        } else {
            if (n3 > n2) {
                System.out.println(n1 + "->" + n2 + "->" + n3);
            } else if (n3 < n1) {
                System.out.println(n3 + "->" + n1 + "->" + n2);
            } else {
                System.out.println(n2 + "->" + n1 + "->" + n3);
            }
        }
    }
}